<%-- 
    Document   : config
    Created on : Jun 11, 2013, 10:30:41 AM
    Author     : tim.vandenlangenberg
--%>

<%@page contentType="text/html" pageEncoding="UTF-8" session="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="contextPath" value="${pageContext.servletContext.contextPath}"/>
<!DOCTYPE html>
<html lang="nl">
<head>
<meta charset="utf-8">
<title>GoW - Configuration</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">

<style type="text/css">
body {
	padding-top: 60px;
	padding-bottom: 40px;
}
</style>
<link type="text/css" rel="stylesheet" href="/stylesheets/main.css" />
<link type="text/css" rel="stylesheet"
	href="/stylesheets/bootstrap.min.css" media="screen">
</head>

<body>
	<c:import url="/WEB-INF/JSP/menu.jsp" />

	<div class="container">
        <h1>Configuration</h1>
        <ul>
            <c:forEach var="weight" items="${weights}">
                <li>
                    <c:url var="configURL" value="/config.htm"/>
                    <form method="post" action="${configURL}">
                        <label>
                            ${weight.actionType}: 
                            <input type="hidden" name="actiontype" 
                                   value="${weight.actionType}"/>
                            <input type="number" name="weight" 
                                   value="${weight.weight}" min="1" 
                                   max="${maxValue}"/>
                        </label>
                        <input type="submit" value="Submit"/>
                    </form>
                </li>
            </c:forEach>
        </ul>
	</div>

	<script src="http://code.jquery.com/jquery.js"></script>
	<script src="/js/bootstrap.min.js"></script>
    </body>
</html>
